package com.zhang.designmode.wangzheng_design_mode.T68.v1;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zxz
 * @DateTime: 2022/3/3 23:40
 * @Description: TODO
 */
public class Client {
    public static void main(String[] args) {
        ResourceFile pdfFile = new PdfFile("1");
        ResourceFile wordFile = new WordFile("2.word");

        List<ResourceFile> list = new ArrayList<>();
        list.add(pdfFile);
        list.add(wordFile);

        Extract extract = new Extract();
        for (ResourceFile resourceFile : list) {
            //todo 这里重载报错
           // extract.extract(resourceFile);
        }
    }
}
